package BUCF;

import java.util.Comparator;

public class mycomparator2 implements Comparator<spot_intere> {

	@Override
	public int compare(spot_intere o1, spot_intere o2) {
		double b1 = o1.getIntere();
		double b2 = o2.getIntere();
		if (b1 < b2) {
			return 1;
		} else if (b1 > b2) {
			return -1;
		}
		return 0;
	}
}
